-- GENERATED SPELL FOR [Shadowforge Flame Keeper] --


function spell0_9956(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(9128,pUnit)
pUnit:RegisterEvent('Sorts_9956', 597, 1)
end

function spell1_9956(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9956', 10333, 1)
end

function spell2_9956(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9956', 632, 1)
end

function spell3_9956(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9956', 589, 1)
end

function Sorts_9956(pUnit, Event)
local choix_sorts_9956 = math.random(0, 3)
if choix_sorts_9956 == 0 then
pUnit:RegisterEvent('spell0_9956', 1, 1)
end
if choix_sorts_9956 == 1 then
pUnit:RegisterEvent('spell1_9956', 1, 1)
end
if choix_sorts_9956 == 2 then
pUnit:RegisterEvent('spell2_9956', 1, 1)
end
if choix_sorts_9956 == 3 then
pUnit:RegisterEvent('spell3_9956', 1, 1)
end
end

function mob9956_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9956', math.random(1500, 3000), 1)
end

function mob9956_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9956_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9956_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9956, 1, 'mob9956_Action')
RegisterUnitEvent(9956, 2, 'mob9956_Leave')
RegisterUnitEvent(9956, 3, 'mob9956_Kill')
RegisterUnitEvent(9956, 4, 'mob9956_Die')
